package com.beyondbit.demo.service.impl;

import com.beyondbit.demo.dao.SwwSignatureMapper;
import com.beyondbit.demo.entity.EntityFileInfo;
import com.beyondbit.demo.entity.EntitySignatureLog;
import com.beyondbit.demo.service.SwwSignatureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ProjectName: beyondbit-demo
 * @Package: com.beyondbit.demo.swwSignature.service.impl
 * @ClassName: SwwSignatureServiceImpl
 * @Author: zq
 * @Description:
 * @Date: 2021/12/15 9:34
 * @Version: 1.0
 */
@Service
public class SwwSignatureServiceImpl implements SwwSignatureService {

    @Autowired
    private SwwSignatureMapper swwSignatureMapper;

    @Override
    public List<EntityFileInfo> selFileInfoByRefTableId(String refTableId) {
        return swwSignatureMapper.selFileInfoByRefTableId(refTableId);
    }

    @Override
    public int insterSignatureLog(EntitySignatureLog signatureLog) {
        return swwSignatureMapper.insterSignatureLog(signatureLog);
    }

    @Override
    public EntitySignatureLog selSignLogInfoByCommonId(String commonId) {
        return swwSignatureMapper.selSignLogInfoByCommonId(commonId);
    }

    @Override
    public int update(EntitySignatureLog item) {
        return swwSignatureMapper.update(item);
    }

    @Override
    public String getFlowIdByFormId(String formId) {
        return swwSignatureMapper.getFlowIdByFormId(formId);
    }
}
